import {createSlice} from '@reduxjs/toolkit'

const toolkitSlice=createSlice({
   name:'city',
   initialState:{
    token:'',
    username:''
   },
   reducers:{
      cctoken(state,action){
        state.token=action.payload
      },
      ccusername(state,action){
        state.username=action.payload
      },
   }
})
export default toolkitSlice.reducer
export const {cctoken,ccusername}=toolkitSlice.actions